package com.qfedu.controller;

import com.qfedu.entity.ResultVo;
import com.qfedu.service.IndexImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * 作者：刘随阳
 * 时间: 2021/9/18 15:37
 * 描述：神光照耀,太白成瑞。六丙来迎,百福悠归
 */
@RequestMapping("/index")
@RestController
@RefreshScope
public class IndexImgController {
    @Autowired
    private IndexImgService indexImgService;
    @GetMapping("/getIndexImg")
    public ResultVo getIndexImg(){
        return indexImgService.getIndexImg();
    }
}